package com.akcome.apollo.domain.enums;

/**
 * @description: 短信业务类型
 * @author: wsy
 * @date: Created in 9:32 2018/1/3
 * @version: $v: 1.0.0
 */
public enum SmsBusinessTypeEnum {

	CAPTCHA("01","验证码", "虎池", "SMS_126876666");

    private String code;

    private String desc;

    private String signName;

    private String templateCode;


    SmsBusinessTypeEnum(String code, String desc, String signName, String templateCode) {
        this.code = code;
        this.desc = desc;
        this.signName = signName;
        this.templateCode = templateCode;
    }

    public String getSignName() {
        return signName;
    }

    public void setSignName(String signName) {
        this.signName = signName;
    }

    public String getTemplateCode() {
        return templateCode;
    }

    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }

    public static SmsBusinessTypeEnum getByCode(String code) {
        for (SmsBusinessTypeEnum enumObj : SmsBusinessTypeEnum.values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj;
            }
        }
        return null;
    }
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

}
